<?php
require_once('Database.php');

 class Grupo {
		private $clave;

		function getClave() {
			return $this->clave;
		}
		function setClave($clave) {
			$this->clave = $clave;
		}
		function save() {
			$sql = "INSERT INTO Grupo (
			clave
			) VALUES(
			'{$this->clave}'
			)
		ON DUPLICATE KEY UPDATE
			clave = '{$this->clave}'
 ";
			$stmt = Database::prepare( $sql );
			$stmt -> execute ();
		}
   }
